package com.qcby.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class TProductForm {
    @NotBlank(message = "商品名称不能为空")
    private String productName;
    
    @NotBlank(message = "品牌名称不能为空")
    private String brandName;
    
    @NotNull(message = "商品分类不能为空")
    private Integer categoryId;
    
    @NotNull(message = "商品价格不能为空")
    private BigDecimal price;
    
    private String productDesc;
    
    private String productPic;
    
    private Integer stock;
    
    private Integer status;
} 